package com.job.client.auth.service.impl;

import com.job.client.auth.mapper.ActionMapper;
import com.job.client.auth.service.ActionService;
import com.job.client.model.auth.constant.XxlJobConstant;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class ActionServiceImpl implements ActionService {
    // 清除超过7天的用户行为日志
    @Autowired
    private ActionMapper actionMapper;
    @XxlJob(XxlJobConstant.CLEAN_ACTION)
    public void cleanAction(){
        actionMapper.cleanAction();
    }
}
